import http from "@/hooks/axios.js";

// 待办数量
const numberOfBacklog = () => {
  return http({
    url: "/HomePageIntegration/internalAudit/getMyTaskCount.do",
    method: "get",
    params: {
      type: "task",
    },
  });
};
// 待办列表
const toDoList = (value) => {
  return http({
    url: "/HomePageIntegration/internalAudit/getMyTaskList.do",
    method: "get",
    params: value,
  });
};
//获取管理员菜单配置
const menuList = () => {
  return http({
    url: "/HomePageIntegration/internalAudit/getModuleLinkList.do",
    method: "get",
  });
};
// 保存管理员配置
const saveTheAdministratorsToConfigure = (value) => {
  return http({
    url: "/HomePageIntegration/internalAudit/saveModuleLinkList.do",
    method: "post",
    data: value,
  });
};
// 验证管理员
const validationOfTheAdministrator = () => {
  return http({
    url: "/HomePageIntegration/internalAudit/verifyCurrentUserIsAdmin.do",
    method: "get",
  });
};
export {
  numberOfBacklog,
  toDoList,
  menuList,
  saveTheAdministratorsToConfigure,
  validationOfTheAdministrator,
};
